package cn.egeek.babel.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * Link entity.
 * 
 * @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "link", catalog = "yd_bbs_db")
public class Link implements java.io.Serializable {

	// Fields

	private Long id;
	private String name;
	private String url;
	private String image;
	private String target;
	private String description;
	private String visible;

	// Constructors

	/** default constructor */
	public Link() {
	}

	/** full constructor */
	public Link(String name, String url, String image, String target,
			String description, String visible) {
		this.name = name;
		this.url = url;
		this.image = image;
		this.target = target;
		this.description = description;
		this.visible = visible;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "id", unique = true, nullable = false)
	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	@Column(name = "name")
	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Column(name = "url")
	public String getUrl() {
		return this.url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	@Column(name = "image")
	public String getImage() {
		return this.image;
	}

	public void setImage(String image) {
		this.image = image;
	}

	@Column(name = "target", length = 25)
	public String getTarget() {
		return this.target;
	}

	public void setTarget(String target) {
		this.target = target;
	}

	@Column(name = "description")
	public String getDescription() {
		return this.description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	@Column(name = "visible", length = 20)
	public String getVisible() {
		return this.visible;
	}

	public void setVisible(String visible) {
		this.visible = visible;
	}

}